<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />
<title>
<?php printTitle(); ?></title>
<link rel="stylesheet" type="text/css" href="dist/zoomify/zoomify.min.css" />
<link rel="stylesheet" type="text/css" href="dist/cropper/cropper.min.css" />
<link rel="stylesheet" type="text/css" href="dist/semantic.min.css" />
<link rel="stylesheet" type="text/css" href="dist/card.css" />
<link rel="stylesheet" type="text/css" href="assets/style/stucloud.css" />
<script src="assets/script/jquery.min.js"></script>
<script src="assets/script/jquery.form.js"></script>
<script src="assets/script/jquery.cookie.min.js"></script>
<script src="dist/cropper/cropper.min.js"></script>
<script src="dist/zoomify/zoomify.min.js"></script>
<script src="dist/semantic.min.js"></script>
<script src="assets/script/stucloud.js"></script>
<script type="text/javascript">
$(document).ready(function(){
	var data = JSON.parse($(".s_temple_setting.farme").html());
	$(".s_top_tool_name").html(data.name);
	$(".s_currect_head").attr("src",data.head_image_path);
	if(data.isnew){
		$(".s_disable_for_new").addClass("disabled");
	}
});
</script>
</head>
<body>
	<div class="s_temple_setting farme"><?php print_json_setting("farme");?></div>
	<div class="ui middle aligned container">
		<div class="ui top fixed menu inverted" id="topmenu">
			<div class="ui container" id="topmenu">
				<a href="index.php" class="header item" id="headeritem">
					<img class="logo" src="assets/images/logo.png" />
					<span class="s_shrink">学生云系统</span>
				</a>
				<a href="index.php?mod=home" class="item" id="fixed_home">家园</a>
				<!-- Class s_menuentry 用作标记在宽度缩小或手机版上，自动显示的item -->
				<div class="ui simple dropdown item s_menunentry" id="drop">
					更多
					<i class="dropdown icon"></i>
					<div class="menu">
						<!-- Class s_menu 用作标记在menu里面的item -->
						<a href="index.php?mod=exam" class="item s_menu" id="menu_exam">考试</a>
						<a href="index.php?mod=artical" class="item s_menu" id="menu_artict">文章</a>
						<a href="index.php?mod=question" class="item s_menu" id="menu_question">题库</a>
						<a href="index.php?mod=forum" class="item s_menu" id="menu_forum">讨论</a>
						<a href="index.php?mod=homework" class="item s_menu" id="menu_homework">作业</a>
					</div>
				</div>
				<!-- Class s_shrink 用作标记在宽度缩小或手机版上，自动hide的item-->
				<a href="index.php?mod=exam" class="item s_shrink" id="shrink_exam">考试</a>
				<a href="index.php?mod=artical" class="item s_shrink" id="shrink_artict">文章</a>
				<a href="index.php?mod=question" class="item s_shrink" id="shrink_question">题库</a>
				<a href="index.php?mod=forum" class="item s_shrink" id="shrink_forum">讨论</a>
				<a href="index.php?mod=homework" class="item s_shrink" id="shrink_homework">作业</a>
				<div class="right menu">
            <?php if(!isLogined()){?>
              <a href="index.php?mod=login" class="item" id="fixed_login">登录</a>
					<a href="index.php?mod=register" class="item" id="fixed_register">注册</a>
              <?php } else {?>
                <div class="ui simple dropdown item" id="prsonal">
						<img class="ui avatar image s_currect_head">
						<span class="s_shrink s_top_tool_name">-</span>
						<i class="dropdown icon"></i>
						<div class="menu">
							<a href="index.php?mod=home&childmod=zone" class="item" id="b_backhome">回到个人家园</a>
							<a href="admin.php" class="item" id="b_admincp">管理面板</a>
							<a href="index.php?mod=logout" class="item" id="b_logout">登出</a>
						</div>
					</div>
                <?php }?></div>
			</div>
		</div>
		<div id="content" style="padding-top: 1cm;"> 
   <?php setRequest();?>
  </div>
	</div>
</body>
</html>